import { DatePicker, Image } from 'antd';
import dayjs from 'dayjs';

import IconDown from '@/assets/images/icon-down.png';

type IProps = {
  picker: any; // 日期选择类型
};
export default function CustomDatePicker(props: IProps) {
  const { picker } = props;
  return (
    <DatePicker
      size="small"
      allowClear={false}
      placeholder=""
      defaultValue={dayjs()}
      style={{
        height: '0.28rem',
        boxShadow: 'none',
      }}
      suffixIcon={
        <Image
          src={IconDown}
          width="0.09rem"
          height="0.05rem"
          style={{ margin: '-0.11rem 0 0 0rem' }}
        ></Image>
      }
      picker={picker}
    />
  );
}
